﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FrmPrincipal
{
    public partial class McDonald : Form
    {
        public McDonald()
        {
            InitializeComponent();
        }
        private void produtosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmProdutos frmP = new FrmProdutos();
            frmP.MdiParent = this;
            frmP.Show();
        }

        private void funcionáriosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmFuncionarios fmF = new FrmFuncionarios();
            fmF.MdiParent = this;
            fmF.Show();
        }

        private void sairToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Você deseja sair ?", "Sair", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
            {
                this.Close();
            }
        }
    }
}
